﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cn.Edwon.Web.Session;

namespace Cn.Edwon.Web.Ac {
    public class AcImplEmpty:IAuthentication {

        #region IAuthentication 成员
        private ISessActor _Actor;
        public ISessActor Actor {
            get {
                return _Actor;
            }
            set {
                _Actor = value;
            }
        }

        public AcState Authenticate(string url) {
            return AcHelper.Excute(_Actor,url);
        }

        public bool IsLogined {
            get { return _Actor!=null; }
        }

        public bool IsAdmin {
            get {
                return false;
            }
        }
        public ISessActor RemoteHandler(String rUserKey, String rRacKey) {
            return null;
        }
        #endregion
    }
}
